package com.hgw.Demo03_DecoratorPattern.Exercises12_7_5;

/**
 * Data time:2021/12/14 19:43
 * StudentID:2019112118
 * Author:hgw
 * Description: 抽象装饰
 */
public class BeverageDecorator extends Beverage{

    private Beverage beverage;

    public BeverageDecorator(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription();
    }

    @Override
    public int getCost() {
        return beverage.getCost();
    }
}
